﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using EZCRS.HCMS.Web;
using EZCRS.HCMS.Bll;
using EZCRS.HCMS.Entity;

namespace EZCRS.HCMS.Web.manage.AIR
{
    public partial class notify_preview : System.Web.UI.Page
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["id"] != null)
                {
                    int iID = 0;
                    int.TryParse(Request.QueryString["id"], out iID);

                    ShowPage(iID);
                }
            }
        }

        private void ShowPage(int ID)
        {

            EZCRS.HCMS.Bll.AIR.AIR_Notify notify = new EZCRS.HCMS.Bll.AIR.AIR_Notify();

            HCRS_AIR_NOTIFY obj = notify.GetNotify(ID);

            Response.Write(obj.NotifyBody);
            Response.End();

        }
    }
}
